
// option
function echartBar(valueDate,value,valueWrap){
    option = {
        backgroundColor: 'rgba(0,0,0,0)',
        grid: {
              left: '0%',
              bottom: '3%',
              top:'2%',
              containLabel: true
          },
        xAxis: {
            data: valueDate,
            axisLine: {
                lineStyle: {
                    color: '#efefef'
                }
            },
            axisLabel:{
                textStyle:{
                    color: '#333'
                }
            },
        },
        yAxis: {
            splitLine: {show: false},
            axisLine: {
                lineStyle: {
                    color: '#efefef'
                }
            }
        },
        animationDurationUpdate: 1200,
        series: [{
            type: 'bar',
            barWidth:25,
            label: {
                normal: {
                    show: true,
                    position: 'outside',
                    textStyle:{
                        fontSize:'12',
                        color:'#ff5c03',
                    },
                },
            },
            itemStyle: {
                normal: {
                    barBorderRadius:[20,20,0,0],
                    color: new echarts.graphic.LinearGradient(
                        0, 0, 0, 1,
                        [
                            {offset: 0, color: '#005d9e'},
                            {offset: 1, color: '#fff'}
                        ]
                    )
                }
            },
            data: value,
            silent: true,
            barGap: '-100%', // Make series be overlap
        }, {
            type: 'bar',
            barWidth:25,
            itemStyle: {
                normal: {
                    barBorderRadius:[20,20,0,0],
                    color: '#fff',
                }
            },
            z: -10,
            data: valueWrap
        }]
    };
    return option;
}